﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" 
    x:Class="PhoneInfo.Page.Collectionxaml"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480" toolkit:TiltEffect.IsTiltEnabled="True" 
    shell:SystemTray.IsVisible="false" Style="{StaticResource TransitionPageStyle}"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    >

    <Grid x:Name="LayoutRoot" Background="{Binding Source={StaticResource Theme}, Path=cuTheme.TextBrush}">
		<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"/>
		<controls:Pivot Height="768" Margin="0" Title="" VerticalAlignment="Top" Width="480" HorizontalAlignment="Left">
            <controls:PivotItem  x:Name="Collect" Margin="0" Width="480" Height="600">
                <controls:PivotItem.Header>
                    <TextBlock Text="我的收藏"  Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.TitleBrush}"  FontSize="50"/>
                </controls:PivotItem.Header>
                <Grid>

                    <ListBox ItemsSource="{Binding}" Tap="ListBox_Tap">
					   <ListBox.ItemTemplate>
						  <DataTemplate>
                                <StackPanel>
                                    <toolkit:ContextMenuService.ContextMenu>
                                        <toolkit:ContextMenu>
                                            <toolkit:MenuItem Header="删除"  Click="DeleteCollection"/>
                                        </toolkit:ContextMenu>
                                    </toolkit:ContextMenuService.ContextMenu>
                                    <TextBlock Text="{Binding Title}" FontSize="26" Foreground="#7d7d7d" Margin="20,10,10,10"/>
                                </StackPanel>
                            </DataTemplate>
				      </ListBox.ItemTemplate>
					</ListBox>
				</Grid>
			</controls:PivotItem>
		</controls:Pivot>
	</Grid>
   
  
</phone:PhoneApplicationPage>
